package com.sky.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sky.dto.ShoppingCartDTO;
import com.sky.entity.ShoppingCart;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface ShoppingCartService extends IService<ShoppingCart> {
    @Transactional
    void  add(ShoppingCartDTO shoppingCartDTO);

    @Transactional
    void  sub(ShoppingCartDTO shoppingCartDTO);

    List<ShoppingCart> showShoppingCart();

    void  cleanShoppingCart();
}
